package com.design.softwaredesign.service;

import com.design.softwaredesign.front.UserInfo;
import com.design.softwaredesign.front.UserRegisterInfo;
import com.design.softwaredesign.vo.DataVo;

/**
 * @author :WaiterXiaoYY
 * @description: TODO
 * @data :2020/10/11 18:24
 */
public interface UserService {
    public DataVo userLogin(String userid, String password);

    public int checkPhone(String phone);

    public DataVo userRegister(UserRegisterInfo userRegisterInfo);

    public DataVo userTest();

    public int updateCode(String phone, String code);

    public String getPhoneCode(String phone);

    // next code by freaks

    public DataVo userUpdateInfo(UserInfo userInfo);

    public DataVo getUserInfoByPhone(String phone);

    public DataVo getUserInfoByUserId(String userId);

    public DataVo getMyGoods(String userId, Integer pageNum, Integer pageSize, String query);

    public DataVo getMyTransactions(String userId, Integer pageNum, Integer pageSize, String query);
}
